package com.shd.edanpei.bean;

import com.shd.edanpei.enums.GenderEnum;

import java.util.List;

/**
 * Created by mc on 2018/9/5.
 * yang-wen-wen
 */

public class OrderDetailsBean {
    /**
     * customerInfo : {"name":"民工啦","sex":0,"idCardNo":"787878","mobile":"18557535009","address":"安徽省 安庆市 大观区 ","detailAddress":"你摸过"}
     * customerData : {"income":0,"industry":"互联网/电子/通信","haveFixedAssets":true,"haveHouse":true,"haveCar":true,"haveCompany":true}
     * attachments : {"idCardPic":[],"householdRegister":[],"roomCert":[]}
     */

    private CustomerInfoBean customerInfo;
    private CustomerDataBean customerData;
    private AttachmentsBean attachments;

    public CustomerInfoBean getCustomerInfo() {
        return customerInfo;
    }

    public CustomerDataBean getCustomerData() {
        return customerData;
    }

    public AttachmentsBean getAttachments() {
        return attachments;
    }

    public static class CustomerInfoBean {
        /**
         * name : 民工啦
         * sex : 0
         * idCardNo : 787878
         * mobile : 18557535009
         * address : 安徽省 安庆市 大观区
         * detailAddress : 你摸过
         */

        private String name;
        private String birthday;
        private int sex;
        private String idCardNo;
        private String mobile;
        private String address;
        private String detailAddress;

        public String getName() {
            return name;
        }

        public String getBirthday() {
            return birthday;
        }

        public String getGender() {
            return sex == GenderEnum.male.getKey() ? GenderEnum.male.getValue() : GenderEnum.female.getValue();
        }

        public String getIdCardNo() {
            return idCardNo;
        }

        public String getMobile() {
            return mobile;
        }

        public String getAddress() {
            return address;
        }

        public String getDetailAddress() {
            return detailAddress;
        }
    }

    public static class CustomerDataBean {
        /**
         * income : 0
         * industry : 互联网/电子/通信
         * haveFixedAssets : true
         * haveHouse : true
         * haveCar : true
         * haveCompany : true
         */

        private String income;
        private String industry;
        private boolean haveFixedAssets;
        private boolean haveHouse;
        private boolean haveCar;
        private boolean haveCompany;

        public String getIncome() {
            return income;
        }

        public String getIndustry() {
            return industry;
        }

        public String isHaveFixedAssets() {
            return haveFixedAssets ? "是" : "否";
        }

        public String isHaveHouse() {
            return haveHouse ? "是" : "否";
        }

        public String isHaveCar() {
            return haveCar ? "是" : "否";
        }

        public String isHaveCompany() {
            return haveCompany ? "是" : "否";
        }
    }

    public static class AttachmentsBean {
        private List<String> idCardPic;
        private List<String> householdRegister;
        private List<String> roomCert;

        public List<String> getIdCardPic() {
            return idCardPic;
        }

        public List<String> getHouseholdRegister() {
            return householdRegister;
        }

        public List<String> getRoomCert() {
            return roomCert;
        }
    }
}
